package com.homework.action;

import java.sql.SQLException;

import com.homework.bean.UserBean;
import com.homework.service.UserService;

public class UserPassAction {
	
	private static UserService userService = null;
	private int userId;
	
	public UserPassAction() {
		userService = new UserService();
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	//用户启用或通过审核
	public String userPass() throws SQLException{		
		// UserBean
		UserBean userBean = new UserBean();
		userBean.setUserId(String.valueOf(this.getUserId()));

		userService.userPass(userBean);

		return "Success";
	}
	

	
}
